<beans  
  xmlns="http://www.springframework.org/schema/beans"  
  xmlns:amq="http://activemq.apache.org/schema/core"  
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd  
  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd     
  http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">  
  
    <!-- The Oracle Datasource that will be used by the Broker -->  
    <bean id="postgresql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">  
      <property name="driverClassName" value="org.postgresql.Driver"/>  
      <property name="url" value="jdbc:postgresql://localhost:51147/kull"/>  
      <property name="username" value="postgres"/>  
      <property name="password" value="sa"/>  
      <property name="maxActive" value="200"/>  
      <property name="poolPreparedStatements" value="true"/>  
    </bean>  
  
    <!-- ==================================================================== -->  
    <!-- ActiveMQ Broker Configuration -->  
    <!-- ==================================================================== -->  
    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost">  
         <!-- The store and forward broker networks ActiveMQ will listen to -->  
        <networkConnectors>  
            <!-- by default just auto discover the other brokers -->  
            <networkConnector name="default-nc" uri="multicast://default"/>  
            <!-- Example of a static configuration:  
            <networkConnector name="host1 and host2" uri="static://(tcp://host1:61616,tcp://host2:61616)"/>  
            -->  
        </networkConnectors>  
  
        <!--  
            to enable Stomp support uncomment this <connector> <serverTransport  
            uri="stomp://localhost:61626"/> </connector>  
        -->  
           
        <persistenceAdapter>  
            <jdbcPersistenceAdapter dataSource="#postgresql-ds"/>  
            <journaledJDBC useDatabaseLock="false"></journaledJDBC>  
        </persistenceAdapter>  
          
          
        <transportConnectors>  
            <transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>  
            <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>  
        </transportConnectors>  
    </broker>  
  
</beans> 